package flc.ast.bean;

import androidx.annotation.Keep;

import java.util.Objects;

@Keep
public class IdPhotosBean {
    /**
     * name : 一寸照
     * cyW : 25
     * cyH : 35
     * pixelW : 295
     * pixelH : 413
     * res : 300
     */

    private String name;
    private int cyW;
    private int cyH;
    private int pixelW;
    private int pixelH;
    private int res;

    public IdPhotosBean(String name, int cyW, int cyH, int pixelW, int pixelH, int res) {
        this.name = name;
        this.cyW = cyW;
        this.cyH = cyH;
        this.pixelW = pixelW;
        this.pixelH = pixelH;
        this.res = res;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getCyW() {
        return cyW;
    }

    public void setCyW(int cyW) {
        this.cyW = cyW;
    }

    public int getCyH() {
        return cyH;
    }

    public void setCyH(int cyH) {
        this.cyH = cyH;
    }

    public int getPixelW() {
        return pixelW;
    }

    public void setPixelW(int pixelW) {
        this.pixelW = pixelW;
    }

    public int getPixelH() {
        return pixelH;
    }

    public void setPixelH(int pixelH) {
        this.pixelH = pixelH;
    }

    public int getRes() {
        return res;
    }

    public void setRes(int res) {
        this.res = res;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        IdPhotosBean that = (IdPhotosBean) o;
        return cyW == that.cyW &&
                cyH == that.cyH &&
                pixelW == that.pixelW &&
                pixelH == that.pixelH &&
                res == that.res &&
                Objects.equals(name, that.name);
    }

    @Override
    public int hashCode() {
        return Objects.hash(name, cyW, cyH, pixelW, pixelH, res);
    }
}
